

//
//  ChatController.m
//  HandheldHospital
//
//  Created by 张鹏的电脑 on 16/3/1.
//  Copyright © 2016年 zhangchao. All rights reserved.
//

#import "ChatController.h"
#import "ChatCell.h"
#import "ChatfaCell.h"

@interface ChatController ()

@end

@implementation ChatController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    //隐藏tabBar
    self.tabBarController.tabBar.hidden = YES;
    
    //注册 cell
    [self.tableView registerNib:[UINib nibWithNibName:@"ChatCell" bundle:nil] forCellReuseIdentifier:@"cell"];
    
    
}

#pragma mark - Table view data source

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
#warning Incomplete implementation, return the number of sections
    return 2;
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    
    if (section == 0) {
        return 1;
    }else{
        
        return 2;
    }
        
    
    
#warning Incomplete implementation, return the number of rows

}
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
    
    return 100;
    
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    ChatCell *cell = [tableView dequeueReusableCellWithIdentifier:@"cell" forIndexPath:indexPath];
    
    if (indexPath.section == 0) {
        
        cell.textLabel.text = @"测试";
        
    }else if (indexPath.section == 1){
        
        cell.textLabel.text = @"在线咨询";

    }else{
        
        cell.textLabel.text = @"收场";
    }
    
    
    
   
    
    return cell;
}



@end
